package com.lpf.state;

// 具体状态B
class ConcreteStateB implements State {
    @Override
    public void handle(Context context) {
        System.out.println("当前状态是 B，即将切换到状态 A");
        context.setState(new ConcreteStateA());
    }
}
